getTextCursorRange

abstract fun getTextCursorRange(): IntRange?

Returns the indices of the selected range of the text block that is currently being edited. If both the start and end index of the returned range have the same value, then the text cursor is positioned at that index.

Return

the selected grapheme range or null if no text block is currently being edited.